package com.rbs.service.Impl;

import com.rbs.dao.BrandDao;
import com.rbs.dao.Impl.BrandDaoImpl;
import com.rbs.entity.Brand;
import com.rbs.service.BrandService;

import java.util.List;
import java.util.Map;

public class BrandServiceImpl implements BrandService {
    private BrandDao brandDao = new BrandDaoImpl();
    @Override
    public Map<Integer, String> selectAllBrand() {
        return brandDao.selectAllBrand();
    }

    @Override
    public List<Brand> selectAllBrandAndPhoneNum() {
        return brandDao.selectAllBrandAndPhoneNum();
    }

    @Override
    public int addBrand(Brand brand) {
        return brandDao.addBrand(brand);
    }

    @Override
    public int deleteBrandById(int id) {
        return brandDao.deleteBrandById(id);
    }
}
